//
//  Bundle+Extension.swift
//  HomeSchoolDemo
//
//  Created by Mac on 16/9/27.
//  Copyright © 2016年 chendong. All rights reserved.
//

import Foundation

extension Bundle{
    
    var bundleName: String?{
        guard let infoPath = Bundle.main.path(forResource: "Info.plist", ofType: nil) else {
            return nil
        }
        return NSDictionary(contentsOfFile: infoPath)?["CFBundleName"] as? String
    }
}
